<template>
	<view>
		<!-- <page-head :title="title"></page-head> -->
		<web-view :src="url"></web-view>
	</view>
</template>
<script>
	import pageHead from '../../../components/page-head.vue'

	export default {
		data() {
			return {
				title: '',
				url: '',
			}
		},
		onLoad: function(option){
			console.log(option.name)
			console.log(option.url)
			this.url = decodeURIComponent(option.url);
			uni.setNavigationBarTitle({
				title:option.name
			})
		},
		components: {
			pageHead
		}
	}
</script>
<style>
	@import "../../../common/uni.css";

	.swiper-item {
		display: block;
		height: 100%;
		text-align: center;
	}

	.swiper-list {
		margin-top: 40px;
		margin-bottom: 0;
	}
	
	/* 四宫格 */
	
	.uni-grid-4 {
		background: #FFFFFF;
		width: 750px;
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
	}
	
	.uni-grid-4-item {
		width: 180px;
		height: 160px;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		border-color: #eee;
		box-sizing: border-box;
	}
	
	.uni-grid-4-image {
		width: 80px;
		height: 80px;
	}
	
	.uni-grid-4-text {
		width: 180px;
		line-height: 50px;
		height: 50px;
		text-align: center;
		font-size: 20px;
	}
	
	.uni-grid-4-item-hover {
		background: rgba(0, 0, 0, 0.1);
	}
	
	.page-section-title {
		padding: 0;
		margin-top: 60px;
		position: relative;
	}

	.info {
		position: absolute;
		right: 0;
		color: #353535;
		font-size: 30px;
	}
</style>